package com.aote.util;



import java.util.Base64;

import org.apache.commons.logging.Log;
import org.apache.log4j.Logger;

public class Base64Plugin {
	static Logger log = Logger.getLogger(Base64Plugin.class);
	
	public static String encode(String kmm){
		if(kmm== null ||"".equals(kmm)){
			return "";
		}
		String result = Base64.getEncoder().encodeToString(kmm.getBytes());
		log.debug("将--" +kmm +"--进行base64加密获得-->" +result );
		return result;
	}
}
